package com.wfk.constant;

import java.io.IOException;

import com.wfk.utils.FunctionUtils;



/**
 * 常量池
 * @author tianpeng
 *
 */


public class Constant {
	
	public static void main(String[] args) throws IOException {
		/**
		 * String str = order.getServicetype() + order.getMerchantId() + order.getOrderno() + order.getAmount() + order.getCurrency()
			+ order.getNotify() + order.getType() + order.getNeedresponse();
		String sign = MD5Util.md5Hex(MD5Util.md5Hex(str) + merchant.getMerchantKey()) ;
		 */
//		String str = "Buy" + "1000000" + "12345678910" + "100" + "CNY" + "http://www.baidu.com" + "alipaywap" + "1" ; 
//		String sign = MD5Util.md5Hex(MD5Util.md5Hex(str) + "tsAcmqT6TkJjcgr0pRhShHsilcFIJ0of") ;
//		System.out.println(sign);
	
		System.out.println(FunctionUtils.generateUuid());
	}
	
	/**
	 * baseInfo区域
	 */
	public static final String siteName = "siteName" ; //网站名称
	public static final String vaptchaVID = "vaptchaVID" ; //vaptcha验证码的VID
	public static final String vaptchaKEY = "vaptchaKEY" ; //vaptcha验证码的KEY
	public static final String merchantVaptchaVID = "merchantVaptchaVID" ; //商户后台验证码
	public static final String merchantVaptchaKEY = "merchantVaptchaKEY" ; //商户后台验证码 
	public static final String currentProductId = "currentProductId" ; //当前商品的id，循环迭代商品
	public static final String h5Domain = "h5Domain" ; //h5域名地址		
	public static final String channelSwitch = "channelSwitch" ; //总通道开关
	
	/**
	 * baseText区域
	 */
	
	
	public static final Integer is_menu = 0 ; //是菜单
	public static final Integer is_not_menu = 1 ; //不是菜单
	
	public static final Integer menu_effective = 0 ; //有效的菜单
	public static final Integer menu_invalid = -1 ; //无效的菜单
	
	public static final Integer user_effective = 0 ; //有效的管理员
	public static final Integer user_invalid = -1 ; //无效的管理员
	
	public static final Integer role_effective = 0 ; //有效的角色
	public static final Integer role_invalid = -1 ; //无效的角色
	
	public static final Integer isOpen_success=1;//开通扫描
	public static final Integer isOpen_NO=0;//未开通扫描
	
	public static final int pay_out=0; //0支出 1收入 
	public static final int pay_in=1; //0支出 1收入 
	
	public static final Integer notify_wait = 0 ; //回调未成功
	public static final Integer notify_success = 1 ; //回调成功
	
	public static final Integer cash_ing = 1 ; //正在提现
	public static final Integer cash_success = 2 ; //提现成功
	public static final Integer cash_reject = 3 ; //提现驳回
	
}
